package itsm.isperp.module.service.app;

import itsm.isperp.framework.data.domain.DataRequest;
import itsm.isperp.framework.data.domain.PageResponse;
import itsm.isperp.framework.service.BaseService;
import itsm.isperp.module.entity.app.AppJobHistory;
import itsm.isperp.module.repository.app.AppJobHistoryMapper;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 定时任务执行历史查询服务.
 * 
 * @author lizx
 * @since 1.0
 */
@Service
public class AppJobHistoryService extends BaseService<AppJobHistory> {

	@Autowired
	protected AppJobHistoryMapper appJobHistoryMapper;

	@Override
	public AppJobHistoryMapper getRepository() {
		return appJobHistoryMapper;
	}

	public PageResponse<Map<String, Object>> findAllDetails(DataRequest req) {
		return this.getRepository().findByRequest(req).toPage();
	}

}
